package net.ycxinxing.mcpebox.utils;

import java.io.*;

public class FileWrapper implements Comparable
{
    private File file;
    public File getFile(){
        return file;
    }
    public FileWrapper(File file){
        this.file = file;
    }
    @Override
    public int compareTo(Object obj) {
        FileWrapper fw = (FileWrapper)obj;
        if(file.getName().compareToIgnoreCase(fw.getFile().getName())>0){
            return 1;
        }else if(file.getName().compareToIgnoreCase(fw.getFile().getName())<0){
            return -1;
        }else{
            return 0;
        }
    }
}

